package com.pig4cloud.pig.page.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.order.api.dto.TrOrder;
import com.pig4cloud.pig.page.entity.PageQueryParam;
import com.pig4cloud.pig.page.mapper.PageMapper;
import com.pig4cloud.pig.page.service.PageService;
import com.pig4cloud.pig.page.vo.TrCustomer;
import com.pig4cloud.pig.page.vo.TrInquire;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PageServiceImpl extends ServiceImpl<PageMapper, PageQueryParam> implements PageService {
	@Autowired
	private PageMapper pageMapper;
	@Override
	public List<TrOrder> selectPageStatus(TrOrder trOrder) {
		return pageMapper.selectPageStatus(trOrder);
	}

	@Override
	public List<TrInquire> selectInquiriesNumber(TrInquire trInquire) {
		return pageMapper.selectInquiriesNumber(trInquire);
	}

	@Override
	public List<TrCustomer> selectCustomer(TrCustomer trCustomer) {
		return pageMapper.selectCustomer(trCustomer);
	}

	@Override
	public List<TrOrder> selectCompletedDesigned(TrOrder trOrder) {
		return pageMapper.selectCompletedDesigned(trOrder);
	}

	@Override
	public List<TrOrder> selectOrderNumbers(TrOrder trOrder) {
		return pageMapper.selectOrderNumbers(trOrder);
	}

	@Override
	public int insertRan(int count) {
		return pageMapper.insertRan(count);
	}

	@Override
	public int insertTripRan(int count) {
		return pageMapper.insertTripRan(count);
	}

	@Override
	public int insertCustomerRan(int count) {
		return pageMapper.insertCustomerRan(count);
	}

	@Override
	public int insertInquireRan(int count) {
		return pageMapper.insertInquireRan(count);
	}

}
